<?php
$name = isset($name)?$name:"cate[parentID]";	//select的name值
$type = isset($type)?$type:service_type::PRODUCT;	//分类类型(产品,文章)
$parentID = isset($parentID)?$parentID:0;		
$cateID = isset($cateID)?$cateID:0;
$show = isset($show)?$show:0;
$append = isset($append)?$append:'';
$topCate = service_category::getTopCate($type);
?>
<select class="" name="<?php echo $name;?>" <?php echo $append;?>>
	<?php if($show):?>
	<option value="0">顶级分类</option>
	<?php endif;?>
	<?php foreach($topCate as $cate):?>
		<?php service_category::getCateOption($cate,$parentID,$cateID,$show);?>
	<?php endforeach;?>
</select>

